<html>
	<head>
		<link rel="stylesheet" href="<?php echo base_url(); ?>_css/reset.css" />
		<link rel="stylesheet" href="<?php echo base_url(); ?>_css/text.css" />
		<link rel="stylesheet" href="<?php echo base_url(); ?>_css/deped.css" />
		
		<script type="text/javascript" src="<?php echo base_url(); ?>_js/jquery.treeview.js" ></script>
		<script type="text/javascript" src="<?php echo base_url(); ?>_js/jquery.js"></script>
		<script type="text/javascript" src="<?php echo base_url(); ?>_js/jquery.cookie.js" ></script>
		<script type="text/javascript" src="<?php echo base_url(); ?>_js/jquery.treeview.js" ></script>
		<script type="text/javascript" src="<?php echo base_url(); ?>_js/demo.js" ></script>
		
		<script type="text/javascript" src="https://www.google.com/jsapi"></script>
	  
	</head>
	
	<body>
		<div id="header-wrap">
			<div id="header">
				<div id="logo">
					<a href="<?php echo base_url(); ?>" ><img src="<?php echo base_url(); ?>_images/deped_logo.png" alt="DepEd Logo"></a>
				</div>
				<?php if($this->user_model->is_logged_in()) :?>
					<div id="user_info">
						<p>Logged in as <span id="user"><?echo $this->session->userdata('username'); ?></span> (<?php echo $this->session->userdata('user_type'); ?>) | <a href="<?php echo base_url(); ?>index.php/home/logout">Logout</a></p>
					</div>
					<div id="icons">
						<a href="#" ><img src="<?php echo base_url(); ?>_images/message.png" alt="Message"></a>
						<a href="#" ><img src="<?php echo base_url(); ?>_images/settings.png" alt="Settings"></a>
						<a href="#" ><img src="<?php echo base_url(); ?>_images/help.png" alt="Help"></a>
					</div>
				<?php endif; ?>	
			</div>
		</div>
		
		<div id="main-wrap">
			<?php if($this->user_model->is_logged_in()) :?>
				<div id="nav">
					<ul id="navigation">
						<li><a href="<?php echo base_url(); ?>index.php/home/dashboard">Home</a><!-- 1st Level -->
						<li><a href="<?php echo base_url(); ?>index.php/home/login">Student/Learner</a><!-- 1st Level -->
						</li>
						<li><a href="">Assessments</a>
							<ul>
								<li><a href="">EBEIS</a>
									<ul>
										<li><a href="">GESP</a>
											<ul>
												<li><a href="<?php echo base_url(); ?>index.php/home/ebeis">Start of SY</a></li>
												<li><a href="<?php echo base_url(); ?>index.php/home/ebeis2">End of SY</a></li>
												<li><a href="<?php echo base_url(); ?>index.php/home/ebeis3">Other years</a></li>
											</ul>
										</li>
										<li><a href="<?php echo base_url(); ?>index.php/home/ebeis">GSSP</a>
											<ul>
												<li><a href="<?php echo base_url(); ?>index.php/home/ebeis">Start of SY</a></li>
												<li><a href="<?php echo base_url(); ?>index.php/home/ebeis2">End of SY</a></li>
												<li><a href="<?php echo base_url(); ?>index.php/home/ebeis3">Other years</a></li>
											</ul>
										</li>
										<li><a href="<?php echo base_url(); ?>index.php/home/ebeis">PSP</a>
											<ul>
												<li><a href="<?php echo base_url(); ?>index.php/home/ebeis">Start of SY</a></li>
												<li><a href="<?php echo base_url(); ?>index.php/home/ebeis2">End of SY</a></li>
												<li><a href="<?php echo base_url(); ?>index.php/home/ebeis3">Other years</a></li>
											</ul>
										</li>
										<li><a href="<?php echo base_url(); ?>index.php/home/ebeis">SUC</a>
											<ul>
												<li><a href="<?php echo base_url(); ?>index.php/home/ebeis">Start of SY</a></li>
												<li><a href="<?php echo base_url(); ?>index.php/home/ebeis2">End of SY</a></li>
												<li><a href="<?php echo base_url(); ?>index.php/home/ebeis3">Other years</a></li>
											</ul>
										</li>	
									</ul>
								</li>
									
								<li><a href="<?php echo base_url(); ?>index.php/home/login">ECE</a></li>
								<li><a href="<?php echo base_url(); ?>index.php/home/login">Elementary</a></li>
								<li><a href="<?php echo base_url(); ?>index.php/home/login">Secondary</a></li>
								<li><a href="<?php echo base_url(); ?>index.php/home/login">ALS</a></li>
							</ul>
						</li>
						<li><a href="<?php echo base_url(); ?>index.php/home/login">School/CLC</a><!-- 1st Level -->
						</li>
						<li><a href="<?php echo base_url(); ?>index.php/home/login">Key Performance Indicators</a><!-- 1st Level -->
						</li>
					</ul>
				</div>
			<?php else: ?>
				<div id="login-wrap">
					<div id="login">
						<h3>Login</h3>
						<div id="form">
				            <?php echo form_open('home/validate_credentials'); ?>
				            <table>
				            	<tr>
				            		<td>Username</td>
				            		<td><input type="text" name="username" id="username" size="22" maxlength="20" /></td>
				            	<tr>
				            	<tr>
				            		<td>Password</td>
				            		<td><input type="password" name="password" id="password" size="22" maxlength="20" /></td>
				            	<tr>
				            	<tr>
				            		<td></td>
				            		<td><?php echo form_submit('submit', 'Login'); ?></td>
				            	</tr>
				            </table>
				            <?php echo form_close(); ?>
				            <?php if($status == 0): ?>
				            	<p class="error">Invalid login credentials.</p>
				            <?php endif; ?>	
				        </div> 
			        </div>
			    </div> 
			<?php endif; ?>
			
			<div id="main">
				<h1><?php echo $title; ?></h1>
			